//
//  NetWork.h
//  HeWeiZhiNeng
//
//  Created by chengzhang Yan on 2017/12/1.
//  Copyright © 2017年 YanCeyMichael.github.io. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFHTTPSessionManager.h>

#import "DataResponse.h"

@interface NetWork : NSObject
@property (strong, nonatomic) AFHTTPSessionManager *manager;


/**
 单例初始化
 
 @return NetWork sharedInstance
 */
+ (NetWork *)sharedManager;


#pragma mark -----

/**
 注册入口
 
 @param userName userName description
 @param userpwd userpwd description
 @param callback callback description
 */
- (void)registerWithUserName:(NSString *)userName userpwd:(NSString *)userpwd CallBack:(void(^)(DataResponse *response))callback;

/**
 发送手机验证码
 
 @param phone phone description
 */
- (void)sendMessageWithPhone:(NSString *)phone CallBack:(void(^)(DataResponse *response))callback;

#pragma mark ----- car perform action

/**
 操作终端
 
 @param carId carId description
 @param carPerform carPerform description
 @param callback callback description
 */
- (void)actionForOperationTheCarByCarId:(NSString *)carId action:(CarPerformActionType)carPerform CallBack:(void(^)(DataResponse *response))callback;

@end
